<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://java.fckeditor.net" prefix="FCK" %>

<%
String path = request.getContextPath();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<title>后台添加新闻页面</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<SCRIPT language=JavaScript src="../../js/meizzDate.js"></SCRIPT>
	<script type="text/javascript" src="../../fckeditor/fckeditor.js"
		charset="UTF-8"></script>
	<!-- 图文混排 -->
	<!-- 设置下拉列表框样式 -->
	<style type="text/css">
<!--
.select * {
  margin: 0;
  padding: 0;
}
.select {
  border:1px solid #cccccc;
  float: left;
  display: inline;
  }
.select div {
  border:1px solid #f9f9f9;
  float: left;
}
/* 子选择器，在FF等非IE浏览器中识别 */
.select>div {
  width:120px;
  height: 17px;
  overflow:hidden;
  }
  
/* 通配选择符，只在IE浏览器中识别 */
* html .select div select {
  display:block;
  float: left;
  margin: -2px;
}
.select div>select {
  display:block;
  width:124px;
  float:none;
  margin: -2px;
  padding: 0px;
}
.select:hover {
  border:1px solid #666666; 
}
.select select>option {
  text-indent: 2px; 
}
-->
</style>
	<link rel="stylesheet" type="text/css"
		href="../../css/style.css">
	<link href="../../css/addChance.css"
		rel="stylesheet" type="text/css">
	<!-- 设置按钮样式 -->
	<link href="../../css/Admin.css"
		rel="stylesheet" type="text/css">
	<!-- 设置文本框样式 -->
	
<script type="text/javascript">
function FCKeditor_OnComplete(editorInstance) {
	window.status = editorInstance.Description;
}
	function checkOption(){
	var  opt=document.getElementById('busNews.hpBusRoute.ids');
	var  context=document.getElementById('busNews.newsContent');
	if(opt.value==0){
	alert('请选择所属新闻类型');
	opt.focus();
	return false;
	}
	else{return true;}
	}

</script>
</head>

<body>
	<!-- 用于图文混排 -->
	
	<script type="text/javascript"
		src="../../js/validation-framework.js" charset="utf-8"></script>
	<!-- 验证框架 -->
	
	<table width="100%" border="0" align="left" cellpadding="0"
		cellspacing="0" bordercolor="#E2E2E1" bgcolor="#FFFFFF">
		<tr>
			<td width="100%" valign="top">
				<table width="100%" border="0" cellpadding="0" cellspacing="0"
					background="">
					<tr>
						<TD width="2%" height=33>
							<DIV align=center>
								<IMG src="<%=path%>/images/sy.gif">
							</DIV>
						</TD>
						<td class="place" colspan="4">
							新闻管理&gt;新闻发布
						</td>
					</tr>
					<tr>
				</table>
			<td>
		</tr>
		<tr>
			<td>
				<br>
				<s:form id="addBusNews" method="post" theme="simple"
					action="doUpdateNewsAction.action">
					<table width="100%" border="0" cellpadding="6" cellspacing="1"
						bgcolor="#C0CCDD" id="content">
						<tr class="top">
							<td height="36" align="center">
								<div align="right">
									<font size=+1><b>基本信息</b>
									</font>
								</div>
								<br><s:hidden name="news.pid"/>
							</td>
							<td height="36" align="left">

								<br>
							</td>
						</tr>
						<tr>
							<td width="25%">
								<div align="right">
									新闻标题:
								</div>
							</td>
							<td class="gray">
								<s:textfield name="news.title" size="30"
									maxlength="30" cssClass="FormBase"
									onfocus="this.className='FormFocus';"
									onblur="this.className='FormBase';" />
								<span class="red" id="dictType">*</span>
								<br>
							</td>
						</tr>
						<tr>
							<td width="25%">
								<div align="right">
									简短标题:
								</div>
							</td>
							<td class="gray">
								<s:textfield  name="news.shortTitle" size="30"
									maxlength="30" cssClass="FormBase"
									onfocus="this.className='FormFocus';"
									onblur="this.className='FormBase';" />
								<span class="red" id="dictType">*</span>
								<br>
							</td>
						</tr>
						<tr>
							<td width="25%">
								<div align="right">
									所属类型:
								</div>
							</td>
							<td class="gray">
								<div class="select">
									<div>
							<s:select name="news.newsType.pid"
								cssStyle="width:180px" id="securityQuestion"
								list="newsTypes" listKey="pid"
								listValue="newsType" />
									</div>
								</div>
								<br>
							</td>
						</tr>
						<tr>
							<td width="25%">
								<div align="right">
									新闻内容:
								</div>
							</td>
							<td class="gray">
								<FCK:editor value="${news.newsContent}" instanceName="news.newsContent"  width="800px" height="600px">
			</FCK:editor>
								<span class="red" id="dictType">*</span>
								<br>
							</td>
						</tr>

						<tr>
							<td class="gray" colspan=2 align="center">
								<input type="submit" name="Submit" value="修改" class="anybutton" />
								<input type="reset" name="Submit2" value="重填" class="anybutton" />
								<input type="button" name="stus" value="返回" class="anybutton"
									onClick="javascript:history.go(-1);" />
								<br>
							</td>
						</tr>
					</table>
				</s:form>
			</td>
		</tr>
	</table>

</body>
</html>
